home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 20
/
Cream of the Crop 20 (Terry Blount) (1996).iso
/
program
/
nxdv99_3.zip
/
NEXECUTE.DOC
< prev
next >
Wrap
Text File
|
1996-06-19
|
15KB
|
474 lines
Nexus (tm) - Next Epoch matrix User System (tm)
Nexecutable Language Quick Reference
All material contained herein is (c) Copyright 1995-96 Intuitive Vision
Software. All Rights Reserved.
------------------------------------------------------------------------------
QUICK REFERENCE TABLE
---------------------
COMMAND EXAMPLE
-------------------------------------------------------------
CLS CLS
DELAY DELAY 3000
DISPLAYFILE DISPLAYFILE "C:\NEXUS\NEW.ANS"
DOOR DOOR 1
FILECREATE FILECREATE 1, "C:\TEST.TXT"
FILEOPEN FILEOPEN 1, "C:\TEST.TXT"
FILEPUT FILEPUT 1, "Testing..."
FILEPUTLN FILEPUTLN 1, "Testing..."
FILECLOSE FILECLOSE 1
GOTOXY GOTOXY 1,1
HALT HALT
IF FILEERR(x) IF FILEERR(1)
[ELSE] HALT
ENDIF ENDIF
IF FILEEXIST IF FILEEXIST "C:\AUTOEXEC.BAT"
[ELSE] ENDIF
ENDIF
IF YN IF YN "Continue? "
[ELSE] ENDIF
ENDIF
IF NY IF NY "Continue? "
[ELSE] ENDIF
ENDIF
MENU MENU 12, "This is a string."
PROMPT PROMPT "Hello there"
PRINT PRINT "Hello there"
SUBSCRIPT SUBSCRIPT 1
VAR VAR STRING MYSTRING "Test String"
COMMAND DESCRIPTIONS
--------------------
CLS
Syntax : CLS
Description : Clears both the remote and local screens
Example : CLS
DELAY
Syntax : DELAY #ofMilliseconds
Description : Delays the program's execution for a specified
number of milliseconds.
Example : DELAY 3000 (would delay for 3 seconds)
DISPLAYFILE
Syntax : DISPLAYFILE "filename"
Description : Displays a display file. This command follows the
same usage as Nexus's menu commands, etc. It will
display the correct file for the emulation if no
extention is given. If a complete path is not
specified, it will attempt to find it in the DISPLAY
path. Random files, day numbered files, etc. may
be used as well, provided no extention is specified.
Example : DISPLAYFILE "NEWUSER"
DOOR
Syntax : DOOR door#
Description : Runs the specified door number
Example : DOOR 3
FILECREATE
Syntax : FILECREATE filehandle, "filename"
Description : Creates a text file using filehandle as "filename".
This will erase a file if it already exists.
If the file cannot be created (due to a bad filename,
non-existant path, etc) the fileerror will be set
for this filehandle. You should check FILEERR() for
the filehandle after this call.
Example : FILECREATE 1, "C:\TEST.TXT"
FILEOPEN
Syntax : FILEOPEN filehandle, "filename"
Description : Opens an existing text file. If the file cannot be
created (due to a bad filename, non-existant path,
etc) the fileerror will be set for this filehandle.
You should check FILEERR() for the filehandle after
this call.
If the file exists, the current file position will
be placed at the end of the file so as to facilitate
appending to the file.
Example : FILEOPEN 1, "C:\TEST.TXT"
FILEPUT
Syntax : FILEPUT filehandle, "string"
Description : This will write a string to the text file. The file
must be opened with either FILECREATE or FILEOPEN
first. This comand will NOT place a CR/LF sequence
at the end of the string.
Example : FILEPUT 1, "Testing..."
FILEPUTLN
Syntax : FILEPUTLN filehandle, "string"
Description : This will write a string to the text file. The file
must be opened with either FILECREATE or FILEOPEN
first. This comand will place a CR/LF sequence
at the end of the string.
Example : FILEPUTLN 1, "Testing..."
FILECLOSE
Syntax : FILECLOSE filehandle
Description : This will close an open file. The file must have
been opened prior to this call.
Example : FILECLOSE 1
GOTOXY
Syntax : GOTOXY x,y
Description : ANSI MODE ONLY -- Will position the cursor on both
the local and remote screens to the specified x and
y coordinates (x=1..80, y=1..24)
Example : GOTOXY 1,1
HALT
Syntax : HALT
Description : Terminates nexecutable execution
Example : HALT
IF FILEERR()
Syntax : IF FILEERR(filehandle)
[command]
.
.
[command]
[ELSE]
[command]
.
.
[command]
ENDIF
Description : This will test the current fileerror status for the
specified filehandle. This is useful after
attempting to open a file with FILEOPEN or create a
file with FILECREATE to check to see if it was
successful.
Example : FILEOPEN 1, "C:\TEST.TXT"
IF FILEERR(1)
PRINT "Error opening file!"
HALT
ENDIF
IF FILEEXIST ..
Syntax : IF FILEEXIST "[filename]"
[command]
.
.
[command]
[ELSE]
[command]
.
.
[command]
ENDIF
Description : This is an IF statement that bases its result (TRUE
or FALSE) on whether the specified filename exists.
Example : IF FILEEXIST "C:\AUTOEXEC.BAT"
PRINT "AUTOEXEC.BAT exists!"
ELSE
PRINT "AUTOEXEC.BAT is MISSING!!!"
ENDIF
IF YN ..
Syntax : IF YN "[prompt]"
[command]
.
.
[command]
[ELSE]
[command]
.
.
[command]
ENDIF
Description : This is an IF statement that bases its result on
the user's